#!/usr/bin/env python
# coding=utf-8
#__author__ = 'Yunchao Ling'

# import redis

# r1 = redis.StrictRedis(host='localhost', port=6379, db=1)
infile1=open("D:/data/mesh/desc2015.txt","r")
for line in infile1:
    line=line.rstrip()
    splitline=line.split("\t")
    id=splitline[1]
    name=splitline[2]
    print id+":"+name
    # r1.set(name, id)
infile1.close()

# r2 = redis.StrictRedis(host='localhost', port=6379, db=2)
infile2=open("D:/data/mesh/qual2015.txt","r")
for line in infile2:
    line=line.rstrip()
    splitline=line.split("\t")
    id=splitline[1]
    name=splitline[2]
    print id+":"+name
    # r2.set(name, id)
infile2.close()